package cn.pugle.selenium;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.chrome.ChromeDriver;

import java.util.Scanner;
import java.util.concurrent.TimeUnit;

/**
 * generate By Selenium IDE <br>
 *
 * @author tzp
 */
public class ForWireshark {
    private ChromeDriver driver;

    @Before
    public void setUp() throws Exception {
//        driver = new FirefoxDriver();
        System.setProperty("webdriver.chrome.driver", "/Users/tzp/Downloads/chromedriver");//
        driver = new ChromeDriver();
        driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

    }

    @Test
    public void testTd() throws Exception {
        driver.get("https://www.baidu.com");
        new Scanner(System.in).nextLine();
    }

    @After
    public void tearDown() throws Exception {
        driver.quit();
    }
}
